<template>
  <view class="page-layout">
    <u-button type="success" text="客服聊天测试" @click="toPage(chat)"></u-button>
    <u-button type="success" text="视频上传测试" @click="toPage(video)"></u-button>
  </view>
</template>

<script>
export default {
  name: "test",
  data() {
    return {
      chat: "/pages/chat/chat",
      video: "/pages/chat/video"
    }
  },
  methods: {
    toPage(url) {
      uni.navigateTo({url: url})
    }
  }
}
</script>

<style scoped>
.page-layout {
  padding: 20px;
}

.page-layout > * {
  margin-top: 10px;
}
</style>
